let token = "";
let loginUrl = "/login";
let permissionList = [];

/**
 * 取出token
 */
if(sessionStorage.token) {
    token  = sessionStorage.token
}

/**
 * 取出登录地址
 */
if(sessionStorage.loginUrl) {
    loginUrl = sessionStorage.loginUrl
}

/**
 * 取出资源菜单
 */
if(sessionStorage.permissionList) {
    permissionList = JSON.parse(sessionStorage.permissionList);
}

export default {
    token: token,
    loginUrl: loginUrl,
    permissionList: permissionList
};